package cc.messcat.entity.fupin;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import cc.messcat.common.util.DateHelper;
/**
 * 家庭成员历史记录
 */
@Entity
@Table(name = "family_history")
public class FamilyHistory {

	@Id
	@GeneratedValue
	private Long id;
	@Column(name="origin_id")
	private Long originId;
	@Column(name = "NAME",length=22)
	private String name;//姓名
	@Column(name = "NUMBER")
	private String number;//人编号
	@Column(name = "SEX")
	private String sex;//性别
	@Column(name = "ID_TYPE")
	private String idType;//证件类型
	@Column(name = "ID_NUMBER",length=30)
	private String idNumber;//证件号码
	@Column(name = "BIRTH_TIME")
	@JsonFormat(pattern = DateHelper.DATE_FORMAT_YYYY_MM_DD, timezone = "GMT+8")
    @DateTimeFormat(pattern = DateHelper.DATE_FORMAT_YYYY_MM_DD)
	private Date birthTime;//出生日期
	@Column(name = "RELATION",length=22)
	private String  relation;//与户主关系
	@Column(name = "NATION")
	private String nation;//民族
	@Column(name = "POLITICAL")
	private String political;//政治面貌
	@Column(name = "CULTURE")
	private String culture;//文化程度
	@Column(name = "SCHOOL",length=30)
	private String school;//在校生情况
	@Column(name = "HEALTHY")
	private String healthy;//健康状况
	@Column(name = "LABOUR")
	private String labour;//劳动技能
	@Column(name = "SOLDIER")
	private String soldier;//是否现役军人
	@Column(name = "LOW")
	private String low;//是否享受低保
	@Column(name = "PROVINCE")
	private String province;//上年务工所在省
	@Column(name = "CITY")
	private String city;//所在市
	@Column(name = "COUNTY")
	private String county;//所在县
	@Column(name = "VILLAGE")
	private String village;//所在乡
	@Column(name = "WORK_TIME")
	private String workTime;//上年务工时间
	@Column(name = "COMPANY")
	private String company;//务工企业名称
	@Column(name = "TELEPHONE")
	private String telephone;//联系电话
	@Column(name = "LARGE")
	private String large;//是否参加大病保险
	/**
	 * 在校生
	 */
	@Column(name = "SCHOOLNAME",length=30)
	private String schoolName;//院校名称
	@Column(name = "ENTERTIME")
	@JsonFormat(pattern = DateHelper.DATE_FORMAT_YYYY_MM_DD, timezone = "GMT+8")
    @DateTimeFormat(pattern = DateHelper.DATE_FORMAT_YYYY_MM_DD)
	private String enterTime;//入学时间
	@Column(name = "MAJOR")
	private String major;//专业名称
	@Column(name = "INSTITUTION")
	private String institution;//学制
	@Column(name = "IS_STUDENT")
	private String isStudent;//是否在校生
	@Column(name = "DO_TYPE")
	private String doType;//办学类型
	/**
     * 其他
     */
	/*@ManyToOne
	@JoinColumn(name="PID")
	private PoorFamily poorFamily;//所属贫困户
*/	
	@Column(name = "IS_DEL",length=2)
	private String isDel;//删除   默认0 1为删除
    @Column(name = "ADD_TIME")
    @JsonFormat(pattern = DateHelper.DATE_FORMAT_YYYY_MM_DD, timezone = "GMT+8")
    @DateTimeFormat(pattern = DateHelper.DATE_FORMAT_YYYY_MM_DD)
    private Date addTime;//添加时间
    @Column(name = "UP_TIME")
    @JsonFormat(pattern = DateHelper.DATE_FORMAT_YYYY_MM_DD, timezone = "GMT+8")
    @DateTimeFormat(pattern = DateHelper.DATE_FORMAT_YYYY_MM_DD)
    private Date upTime;//修改时间
    @Column(name = "DE_TIME")
    @JsonFormat(pattern = DateHelper.DATE_COMMON_FORMAT, timezone = "GMT+8")
    @DateTimeFormat(pattern = DateHelper.DATE_COMMON_FORMAT)
    private Date deTime;//删除时间
    @Column(name = "STATE",columnDefinition=" varchar(255) default '1'")
    private String state;//状态0为新增  1为修改
    
    @Column(name = "FID")
    private Long fid;
    
    @Column(name = "ANNUAL",length=80)
    private String annual;//年度
    
    
	public Long getId() {
		return id;
	}
	public String getName() {
		return name;
	}
	public String getNumber() {
		return number;
	}
	public String getSex() {
		return sex;
	}
	public String getIdType() {
		return idType;
	}
	public String getIdNumber() {
		return idNumber;
	}
	public Date getBirthTime() {
		return birthTime;
	}
	public String getRelation() {
		return relation;
	}
	public String getNation() {
		return nation;
	}
	public String getPolitical() {
		return political;
	}
	public String getCulture() {
		return culture;
	}
	public String getSchool() {
		return school;
	}
	public String getHealthy() {
		return healthy;
	}
	public String getLabour() {
		return labour;
	}
	public String getSoldier() {
		return soldier;
	}
	public String getLow() {
		return low;
	}
	public String getProvince() {
		return province;
	}
	public String getCity() {
		return city;
	}
	public String getCounty() {
		return county;
	}
	public String getVillage() {
		return village;
	}
	public String getWorkTime() {
		return workTime;
	}
	public String getCompany() {
		return company;
	}
	public String getTelephone() {
		return telephone;
	}
	public String getLarge() {
		return large;
	}
	public String getSchoolName() {
		return schoolName;
	}
	public String getEnterTime() {
		return enterTime;
	}
	public String getMajor() {
		return major;
	}
	public String getInstitution() {
		return institution;
	}
	public String getIsStudent() {
		return isStudent;
	}
	public String getDoType() {
		return doType;
	}
	public Date getAddTime() {
		return addTime;
	}
	public Date getUpTime() {
		return upTime;
	}
	public Date getDeTime() {
		return deTime;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public void setIdType(String idType) {
		this.idType = idType;
	}
	public void setIdNumber(String idNumber) {
		this.idNumber = idNumber;
	}
	public void setBirthTime(Date birthTime) {
		this.birthTime = birthTime;
	}
	public void setRelation(String relation) {
		this.relation = relation;
	}
	public void setNation(String nation) {
		this.nation = nation;
	}
	public void setPolitical(String political) {
		this.political = political;
	}
	public void setCulture(String culture) {
		this.culture = culture;
	}
	public void setSchool(String school) {
		this.school = school;
	}
	public void setHealthy(String healthy) {
		this.healthy = healthy;
	}
	public void setLabour(String labour) {
		this.labour = labour;
	}
	public void setSoldier(String soldier) {
		this.soldier = soldier;
	}
	public void setLow(String low) {
		this.low = low;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public void setCounty(String county) {
		this.county = county;
	}
	public void setVillage(String village) {
		this.village = village;
	}
	public void setWorkTime(String workTime) {
		this.workTime = workTime;
	}
	public void setCompany(String company) {
		this.company = company;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	public void setLarge(String large) {
		this.large = large;
	}
	public void setSchoolName(String schoolName) {
		this.schoolName = schoolName;
	}
	public void setEnterTime(String enterTime) {
		this.enterTime = enterTime;
	}
	public void setMajor(String major) {
		this.major = major;
	}
	public void setInstitution(String institution) {
		this.institution = institution;
	}
	public void setIsStudent(String isStudent) {
		this.isStudent = isStudent;
	}
	public void setDoType(String doType) {
		this.doType = doType;
	}
	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}
	public void setUpTime(Date upTime) {
		this.upTime = upTime;
	}
	public void setDeTime(Date deTime) {
		this.deTime = deTime;
	}
	public String getIsDel() {
		return isDel;
	}
	public void setIsDel(String isDel) {
		this.isDel = isDel;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public Long getFid() {
		return fid;
	}
	public void setFid(Long fid) {
		this.fid = fid;
	}
	public String getAnnual() {
		return annual;
	}
	public void setAnnual(String annual) {
		this.annual = annual;
	}
	public Long getOriginId() {
		return originId;
	}
	public void setOriginId(Long originId) {
		this.originId = originId;
	}
    
}
